
if not Data then
	Data = {}
end

function Data.onLoadPoint(datamgr)
	if not world then
		log.error("failed to load data manager for point, world required")
	end

	for cid, country in ipairs(world) do
		for did, district in ipairs(country) do
			for sid, spoint in ipairs(district) do
				local data = datamgr:put( ((cid*256 + did)*256 + sid) * 256)
				if data then
					data:setX(spoint.type)
					data:setY(spoint.depend)
				else
					log.error("failed to put point data into manager:", cid, did, sid)
				end
			end
		end
	end
end
